home *** CD-ROM | disk | FTP | other *** search
- Path: news.ro.com!usenet
- From: howard@ro.com (Ren)
- Newsgroups: comp.lang.c++
- Subject: Re: *** Need Help with Error ***
- Date: 8 Jan 1996 06:58:26 GMT
- Organization: RSI
- Message-ID: <4cqfai$ipe@news.ro.com>
- References: <4cng8s$741@news.fsu.edu>
- NNTP-Posting-Host: ts1p14.ro.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.6
-
- In article <4cng8s$741@news.fsu.edu>, colvin@xi.cs.fsu.edu≈ spews forth
- >
- >
- >
- > Hello. I'm having a linker error come up and I really have no clue
- > as to what it means. I used bgiobj.exe to convert all my .bgi and
- > .chr into .obj, and I'm trying to link them together with my driver
- > program, command-line style, but I keep getting this error:
- >
- > Error: Segment _TEXT exceeds 64 K
- >
- > Any clues? What is _TEXT? Is that an arbitrary thing? Can I somehow
- > increase my whatever past 64 K to fix it?
- >
- >Thanx. :)
- >---------
- >Joshua Colvin
- >colvin@cs.fsu.edu
-
- The files you create when you run bgiobj.exe are by default created in
- the _TEXT segment. If you are using the small or compact memory model you
- overload the _TEXT segment rather quickly because the code is stored there as
- well. SO, your obj's are trying to use more than 64k. Now you could change the
- memory model, but thats not the best way to do it. Escpecially if you use
- quite a few fonts, ect since it will overload the _TEXT segment then too even
- though larger memory models have larger _TEXT segments.
- To correct the problem, use the /F option when you run bgiobj.exe. The
- /F option tells bgiobj.exe to use the segment name filename_TEXT (where
- filename is the name of the file you are converting). This way the default
- segment isn't overburdened by a bunch of linked in obj files. Also, don't use
- the registerbgidriver function, you have to use the registerfarbgidriver..
-
- Hope that helps,
-
- Greg
-
-